<?php

namespace App\Http\Controllers\Auth;

use App\Models\Role;
use App\User;
use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class RolesController extends Controller
{
    public function index()
    {
        $roles = Role::all();
        return $roles;
    }

    public function store()
    {
        
    }
    
    public function show()
    {
//        $user = User::where('name', '=', '68067348@qq.com')->first();
//        $user->roles()->attach(['1','2']);
    }

    public function create()
    {
        
    }

    public function destroy()
    {
        
    }

    public function update()
    {
        
    }

    public function edit()
    {
        
    }
}
